package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "sun_system")
public class SunSystem {
    @Id
    @Column(name = "sys_id")
    private Long sysId;

    @Column(name = "sys_key")
    private String sysKey;

    @Column(name = "sys_value")
    private String sysValue;

    @Column(name = "key_type")
    private String keyType;

    @Column(name = "key_sub_type")
    private String keySubType;

    private String comment;

    public SunSystem(Long sysId, String sysKey, String sysValue, String keyType, String keySubType, String comment) {
        this.sysId = sysId;
        this.sysKey = sysKey;
        this.sysValue = sysValue;
        this.keyType = keyType;
        this.keySubType = keySubType;
        this.comment = comment;
    }

    public SunSystem() {
        super();
    }

    /**
     * @return sys_id
     */
    public Long getSysId() {
        return sysId;
    }

    /**
     * @param sysId
     */
    public void setSysId(Long sysId) {
        this.sysId = sysId;
    }

    /**
     * @return sys_key
     */
    public String getSysKey() {
        return sysKey;
    }

    /**
     * @param sysKey
     */
    public void setSysKey(String sysKey) {
        this.sysKey = sysKey;
    }

    /**
     * @return sys_value
     */
    public String getSysValue() {
        return sysValue;
    }

    /**
     * @param sysValue
     */
    public void setSysValue(String sysValue) {
        this.sysValue = sysValue;
    }

    /**
     * @return key_type
     */
    public String getKeyType() {
        return keyType;
    }

    /**
     * @param keyType
     */
    public void setKeyType(String keyType) {
        this.keyType = keyType;
    }

    /**
     * @return key_sub_type
     */
    public String getKeySubType() {
        return keySubType;
    }

    /**
     * @param keySubType
     */
    public void setKeySubType(String keySubType) {
        this.keySubType = keySubType;
    }

    /**
     * @return comment
     */
    public String getComment() {
        return comment;
    }

    /**
     * @param comment
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sysId=").append(sysId);
        sb.append(", sysKey=").append(sysKey);
        sb.append(", sysValue=").append(sysValue);
        sb.append(", keyType=").append(keyType);
        sb.append(", keySubType=").append(keySubType);
        sb.append(", comment=").append(comment);
        sb.append("]");
        return sb.toString();
    }
}